package com.atguigu.spzx.manager.service;

import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import com.atguigu.spzx.model.dto.system.LoginDto;
import com.atguigu.spzx.model.vo.system.LoginVo;
import com.github.pagehelper.PageInfo;

/**
 * @author syh
 * @create 2023-08-12 16:56
 */
public interface SysUserService {

    /**
     * 根据用户名查询用户数据
     * @return
     */
    public abstract LoginVo login(LoginDto loginDto) ;

    SysUser getUserInfo(String token);

    void logout(String token);

    PageInfo<SysUser> page(Integer pageNum, Integer pageSize, SysUserDto sysUserDto);

    void deleteById(Long id);

    void save(SysUser sysUser);

    SysUser getById(Long id);

    void updateById(SysUser sysUser);
}
